package com.jinmdz.fmis.mapper.entity;

import com.jinmdz.fmis.mapper.annotation.MyColumn;
import com.jinmdz.fmis.mapper.annotation.MyTable;
import com.jinmdz.fmis.mapper.base.BaseEntity;

import java.math.BigDecimal;

/**
 * 车辆表Entity
 *
 * @author generator
 * @date 2020-03-12 17:08
 */
@MyTable(value = "TransportCarEntity", name = "transport_car", comment = "车辆表")
public class TransportCarEntity extends BaseEntity {
    /**
     * 车辆类型编码
     */
    @MyColumn(value = "carTypeCode", name = "car_type_code", comment = "车辆类型编码", required = true)
    private Integer carTypeCode;

    /**
     * 车辆归属编码
     */
    @MyColumn(value = "carBelongCode", name = "car_belong_code", comment = "车辆归属编码", required = true)
    private Integer carBelongCode;

    /**
     * 车辆编号
     */
    @MyColumn(value = "carCode", name = "car_code", comment = "车辆编号", required = true)
    private String carCode;

    /**
     * 车牌号
     */
    @MyColumn(value = "carNo", name = "car_no", comment = "车牌号", required = true)
    private String carNo;

    /**
     * 里程单价
     */
    @MyColumn(value = "transportPrice", name = "transport_price", comment = "里程单价", required = true)
    private BigDecimal transportPrice;

    /**
     * 禁用状态
     */
    @MyColumn(value = "disableState", name = "disable_state", comment = "禁用状态", required = true)
    private Integer disableState;

    /**
     * 关联司机外键
     */
    @MyColumn(value = "driverUserId", name = "driver_user_id", comment = "关联司机外键")
    private Integer driverUserId;

    /**
     * 排序
     */
    @MyColumn(value = "sort", name = "sort", comment = "排序", required = true)
    private Integer sort;

    /**
     * 备注
     */
    @MyColumn(value = "remark", name = "remark", comment = "备注")
    private String remark;


    public Integer getCarTypeCode() {
        return carTypeCode;
    }

    public TransportCarEntity setCarTypeCode(Integer carTypeCode) {
        this.carTypeCode = carTypeCode;
        return this;
    }

    public Integer getCarBelongCode() {
        return carBelongCode;
    }

    public TransportCarEntity setCarBelongCode(Integer carBelongCode) {
        this.carBelongCode = carBelongCode;
        return this;
    }

    public String getCarCode() {
        return carCode;
    }

    public TransportCarEntity setCarCode(String carCode) {
        this.carCode = carCode;
        return this;
    }

    public String getCarNo() {
        return carNo;
    }

    public TransportCarEntity setCarNo(String carNo) {
        this.carNo = carNo;
        return this;
    }

    public BigDecimal getTransportPrice() {
        return transportPrice;
    }

    public TransportCarEntity setTransportPrice(BigDecimal transportPrice) {
        this.transportPrice = transportPrice;
        return this;
    }

    public Integer getDisableState() {
        return disableState;
    }

    public TransportCarEntity setDisableState(Integer disableState) {
        this.disableState = disableState;
        return this;
    }

    public Integer getDriverUserId() {
        return driverUserId;
    }

    public TransportCarEntity setDriverUserId(Integer driverUserId) {
        this.driverUserId = driverUserId;
        return this;
    }

    public Integer getSort() {
        return sort;
    }

    public TransportCarEntity setSort(Integer sort) {
        this.sort = sort;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public TransportCarEntity setRemark(String remark) {
        this.remark = remark;
        return this;
    }
}